//
//  IRead.h
//  FoxitApp
//
//  Created by sijia_liu on 15/4/27.
//
//

#import "FXInc.h"

@class DmHandlerMgr;
@class DmDocMgr;
@protocol FSPDFUIExtensionsManager;
@protocol OFDViewCtrlEventsDelegate;

@protocol IRead <NSObject>

-(BOOL)openDocument:(DmFileDescriptor*)fileDescriptor completion:(void(^)(enum FS_ERRORCODE error))completion;
-(BOOL)compareDocument:(DmFileDescriptor*)fileDescriptor other:(DmFileDescriptor*)fileDescriptor;
-(BOOL)closeDocument:(BOOL)save CleanUp:(void (^)())cleanup;
-(BOOL)exitRead;

-(BOOL)registerLifecycleListener:(id<IReadLifecycleListener>)listener;
-(BOOL)unregisterLifecycleListener:(id<IReadLifecycleListener>)listener;

-(BOOL)registerStateChangeListener:(id<IStateChangeListener>)listener;
-(BOOL)unregisterStateChangeListener:(id<IStateChangeListener>)listener;

-(void)changeState:(int)state;
-(int)getState;

//-(ReadFrame*)getReadFrame;
-(id<IDvDocViewer>)getDocViewer;
-(DmDocMgr*)getDocMgr;
-(DmHandlerMgr*)getHandlerMgr;
-(id<FSPDFUIExtensionsManager>)getExtensionsManager;
@end
